package com.wu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wu.entity.sys.SRoleDo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author wujilu
 * @since 2020-11-24
 */
public interface SRoleMapper extends BaseMapper<SRoleDo> {

    List<SRoleDo> getSRoleListByName(@Param("roleName") String roleName);

    int judgeIsExistRoleName(@Param("roleName") String roleName,@Param("roleId") Long roleId);

    List<SRoleDo> getRoleListByUserId(@Param("userId") Long userId);

}
